package com.xe.util;

import com.google.appengine.api.datastore.Key;
import com.xe.gae.control.XEDataStorageService;

public class XEntity<T> {

	Key key;
	
	XEDataStorageService dss = new XEDataStorageService();

	public Key getKey() {
		return key;
	}

	public void setKey(Key key) {
		this.key = key;
	}

	public XEDataStorageService getDss() {
		return dss;
	}

	public void setDss(XEDataStorageService dss) {
		this.dss = dss;
	}
	
	
	public T load(){
		 return (T)dss.findByKey(this.getClass(), key);
	}
}
